/*
 * @Description:
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2021-09-09 10:07:39
 * @LastEditors: gaoluo
 * @LastEditTime: 2021-09-11 09:45:01
 * @FilePath: /nhw/src/components/Echarts/index.js
 */


//导入Echarts
import * as echarts from 'echarts/core';

//导入常用组件
import {
  TitleComponent,
  TooltipComponent,
  GridComponent,
  LegendComponent
} from 'echarts/components';

//导入渲染器
import {
  SVGRenderer
} from 'echarts/renderers';

// 注册必须的组件
echarts.use(
  [TitleComponent, TooltipComponent, GridComponent, LegendComponent, SVGRenderer]
);

export default echarts;